home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 31 / Amiga Format CD31 (1998-09-02)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1998-10].iso / -seriously_amiga- / hardware / transadf / source / dmakefile < prev    next >
Makefile  |  1998-07-20  |  4KB  |  125 lines

  1. CC     = dcc
  2. COPTS  = -proto -mi -mRR -ms -r
  3. DOPTS  = 
  4.  
  5. # Note: The DICE regargs amiga library (amigasr.lib) does not have a 
  6. # _FPrintf stub (Can't imagine why...).  Link this object if you are
  7. # using DICE.
  8. XOBJS  = dos_fprintf.o
  9.  
  10. OUTPUT   = /TransADF
  11. RTOUTPUT = /TransADF-RT
  12. LOUTPUT  = /TransADF-Lite
  13.  
  14. OBJS   = main.o args.o mem_chunks.o td.o read_disk.o write_disk.o defl_disk.o \
  15. infl_disk.o util.o gzip.o pkzip.o errors.o version.o $(XOBJS)
  16.  
  17. RTOBJS = main_r.o args.o mem_chunks.o td.o read_disk.o write_disk.o defl_disk_r.o \
  18. infl_disk_r.o util.o gzip.o pkzip.o errors.o version_r.o $(XOBJS)
  19.  
  20. LOBJS = main_l.o args.o mem_chunks.o td.o read_disk.o write_disk.o util_l.o \
  21. errors.o version_l.o $(XOBJS)
  22.  
  23.  
  24. #####
  25. all: $(OUTPUT) $(RTOUTPUT) $(LOUTPUT)
  26.  
  27.  
  28. ###############
  29. # Executables #
  30. ###############
  31. $(OUTPUT): $(OBJS)
  32.     $(CC) $(DOPTS) $(COPTS) -lz -o %(left) $(OBJS)
  33.  
  34. $(RTOUTPUT): $(RTOBJS)
  35.     $(CC) $(DOPTS) $(COPTS) -o %(left) $(RTOBJS)
  36.  
  37. $(LOUTPUT): $(LOBJS)
  38.     $(CC) $(DOPTS) $(COPTS) -o %(left) $(LOBJS)
  39.  
  40.  
  41. ####################
  42. # Standard objects #
  43. ####################
  44. main.o: mem_chunks.h td.h read_disk.h write_disk.h defl_disk.h infl_disk.h util.h errors.h version.h main.h main.c 
  45.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) main.c
  46.  
  47. args.o: args.h args.c
  48.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) args.c
  49.  
  50. mem_chunks.o: mem_chunks.h mem_chunks.c
  51.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) mem_chunks.c
  52.  
  53. td.o: td.h td.c
  54.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) td.c
  55.  
  56. read_disk.o: main.h mem_chunks.h td.h util.h errors.h read_disk.h read_disk.c
  57.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) read_disk.c
  58.  
  59. write_disk.o: main.h mem_chunks.h td.h util.h errors.h write_disk.h write_disk.c
  60.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) write_disk.c
  61.  
  62. defl_disk.o: main.h mem_chunks.h td.h util.h errors.h def_disk.h defl_disk.c
  63.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) defl_disk.c
  64.  
  65. infl_disk.o: main.h mem_chunks.h td.h util.h errors.h infl_disk.h infl_disk.c
  66.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) infl_disk.c
  67.     
  68. util.o: gzip.h pkzip.h util.h util.c
  69.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) util.c
  70.  
  71. gzip.o: main.h util.h errors.h gzip.h gzip.c
  72.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) gzip.c
  73.  
  74. pkzip.o: main.h util.h errors.h pkzip.h pkzip.c
  75.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) pkzip.c
  76.  
  77. errors.o: main.h errors.h errors.c
  78.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) errors.c
  79.  
  80. version.o: main.h version.h version.c
  81.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) version.c
  82.  
  83.  
  84. #############################
  85. # RunTime z.library objects #
  86. #############################
  87. main_r.o: td.h read_disk.h write_disk.h defl_disk.h infl_disk.h util.h errors.h version.h main.h main.c
  88.     $(CC) $(DOPTS) $(COPTS) -D COMPILE_RT -c -o %(left) main.c
  89.  
  90. defl_disk_r.o: main.h td.h util.h errors.h def_disk.h defl_disk.c
  91.     $(CC) $(DOPTS) $(COPTS) -D COMPILE_RT -c -o %(left) defl_disk.c
  92.  
  93. infl_disk_r.o: main.h td.h util.h errors.h infl_disk.h infl_disk.c
  94.     $(CC) $(DOPTS) $(COPTS) -D COMPILE_RT -c -o %(left) infl_disk.c
  95.  
  96. version_r.o: main.h version.h version.c
  97.     $(CC) $(DOPTS) $(COPTS) -D COMPILE_RT -c -o %(left) version.c
  98.  
  99.  
  100. ####################################
  101. # Lite objects - no de/compression #
  102. ####################################
  103.  
  104. main_l.o: td.h read_disk.h write_disk.h util.h errors.h version.h main.h main.c 
  105.     $(CC) $(DOPTS) $(COPTS) -D COMPILE_LITE -c -o %(left) main.c
  106.  
  107. util_l.o: util.h util.c
  108.     $(CC) $(DOPTS) $(COPTS) -D COMPILE_LITE -c -o %(left) util.c
  109.  
  110. version_l.o: main.h version.h version.c
  111.     $(CC) $(DOPTS) $(COPTS) -D COMPILE_LITE -c -o %(left) version.c
  112.  
  113.  
  114. #################
  115. # Extra objects #
  116. #################
  117.  
  118. dos_fprintf.o: dos_fprintf.c
  119.     $(CC) $(DOPTS) $(COPTS) -c -o %(left) dos_fprintf.c
  120.  
  121.  
  122. #############
  123. clean:
  124.     delete $(OBJS) $(RTOBJS) $(LOBJS) FORCE QUIET
  125.